<?php

namespace App\Http\Controllers;

use App\Models\Company;
use Illuminate\Http\Request;

class CompanyController extends WxController
{
    //企业详情
    public function detail(Request $request){
        $id = $request['id'];
        $this->validate($request, [
            'id' => 'required|integer',
        ]);
        $data = (new Company())->getAllById($id);
        return $this->success($data);
    }

}
